<%@include file="/WEB-INF/views/includes/taglibs.jsp"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@include file="/WEB-INF/views/includes/adminHeader.jsp"%>

<script type="text/javascript">

</script>

<div class="homePage ui-tabs-panel ui-widget-content ui-corner-bottom">
	<div id="leftMenu">
		<%@include file="/WEB-INF/views/includes/bizGroupAdminLeftNav.jsp"%>
	</div>
	<div id="rightContent">
		<%@include file="/WEB-INF/views/includes/messages.jsp"%>
		<h2>Create new Business Group</h2>
		<form:form method="post" action="submitCreateBizGroup" id="createBizGroupform">
		<table>
				<tr>
					<td style="width:200px;"><form:label path="name">Group Name</form:label></td>
					<td><form:input path="name" autocomplete="off"/></td>
				</tr>
				<tr>
					<td style="width:200px;"><form:label path="description">Description</form:label></td>
					<td><form:input path="description" autocomplete="off"/></td>
				</tr>
				<tr>
					<td><form:label path="parentId">Parent Group</form:label></td>
					<td><form:select path="parentId" autocomplete="off">
							<form:options items="${bizGroupList}"  itemValue="id" itemLabel="name" />
					</form:select></td>
				</tr>
			</table>
			<button type="button"
				class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
				onclick="save()">
				<span class="ui-button-text">Save</span>
			</button>
			<script type="text/javascript">
				function save() {
					$('#createBizGroupform').submit();
				}
			</script>
		</form:form>
		<div style="height:1px;width:740px;"></div>
	</div>
</div>

<%@include file="/WEB-INF/views/includes/adminfooter.jsp"%>